package com.moyq5.permit.center.bean.entity;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;

import org.hibernate.annotations.DynamicUpdate;
import org.hibernate.annotations.GenericGenerator;

/**
 * 门店信息
 * @author Moyq5
 * @date 2018年4月13日
 */
@Entity
@Table(name = "uc_shop")
@DynamicUpdate
public class Shop implements java.io.Serializable {

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	/**
	 * 门店ID
	 */
	@Id
    @GeneratedValue(strategy = GenerationType.AUTO, generator = "native")@GenericGenerator(name = "native", strategy = "native")
    @Column(name = "shop_id")
	private Long shopId;
	/**
	 * 门店编号
	 */
	@Column(name = "shop_no", length = 20, nullable = false)
	private String shopNo;
	/**
	 * 门店名称
	 */
    @Column(name = "name", length = 100, nullable = false)
	private String name;
    /**
	 * 添加（注册）时间
	 */
	@Column(name = "add_time", nullable = false, columnDefinition="datetime")
	private Date addTime;
	public Long getShopId() {
		return shopId;
	}
	public void setShopId(Long shopId) {
		this.shopId = shopId;
	}
	public String getShopNo() {
		return shopNo;
	}
	public void setShopNo(String shopNo) {
		this.shopNo = shopNo;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public Date getAddTime() {
		return addTime;
	}
	public void setAddTime(Date addTime) {
		this.addTime = addTime;
	}
	@Override
	public String toString() {
		return "Shop [shopId=" + shopId + ", shopNo=" + shopNo + ", name=" + name + ", addTime=" + addTime + "]";
	}
	
}
